package com.snake.springboot.custom.service.assemble.base;


import com.snake.springboot.custom.api.model.base.CustCertModel;
import com.snake.springboot.custom.api.request.base.CustomReq;
import com.snake.springboot.custom.dao.mybatis.entity.base.CustCertDO;
import org.snake.common.utils.PropertyUtils;

/**
 * <p>
 * 类{@code CustCertAssembler} </br>
 * 创建时间2025/2/14 17:48
 *
 * @author yangxt
 * @see
 */
public class CustCertAssembler {

    public static CustCertDO certDOAss(CustomReq customReq) {
        CustCertDO certDO = new CustCertDO();
        PropertyUtils.copyProperties(certDO,customReq.getCertModel());
        certDO.setCustomId(customReq.getCustomId());
        return certDO;
    }


    public static CustCertDO certDOAss(CustCertModel customModel) {
        CustCertDO certDO = new CustCertDO();
        PropertyUtils.copyProperties(certDO,customModel);
        return certDO;
    }
}
